<?php 
if ($this->request['action'] != 'list') return;
?>

<script type='text/javascript' template='<?php echo basename(__FILE__); ?>'>
$(function() {
	$("#crud_paginator a.paginator_page").live('click', function() {
		var $page = $(this).attr('page');
		refreshTable({
			page: $page
		});
		return false;
	});
	
	$("#crud_paginator a.paginator_change_perpage").live('click', function() {
		refreshTable({
			perPage: $(this).text()
		});
	});
});
</script>
